const files = require.context('./modules', false, /\.js$/)
const generators = files.keys().map(key => files(key).default)

export default vm => {
  return Object.assign(
    {},
    ...generators.map(generator =>
      generator({
        vm
      })
    )
  )
}
